<template>
    <div>
        <good-list :arr="arr"></good-list>
    </div>
</template>
<script>
import {goodlist} from "../../http/http"
export default {
    data() {
        return {
            arr:[]
        }
    },
    mounted() {
        // console.log(this.$route);
        goodlist({
            id:this.$route.query.id,
            type:this.$route.query.type
        }).then(res=>{
            console.log(res);
             this.arr=res.data.list.goodData?res.data.list.goodData:[];
        })
    },
}
</script>
<style>

</style>